package rd.android.hardcore.ui 
{
	import caurina.transitions.Tweener;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class PadsFeaturePanel extends Sprite
	{
		private var BG:Sprite;
		
		public function PadsFeaturePanel() 
		{
			scrollRect = new Rectangle(-10, -10, 320, 520);
			
			BG = new Sprite();
			BG.graphics.beginFill(0xffffff);
			BG.graphics.drawRect(0, 0, 480, 800);
			BG.graphics.endFill(); 
			//BG.scaleX = .1;
			//BG.scaleY = .1;
			BG.width = 30;
			BG.height = 30;
			BG.x = 120;
			BG.y = 200;
			BG.alpha = 0;
			
			addChild(BG);
		}
		
		public function showPanel():void
		{
			Tweener.addTween(BG, { alpha:1, time:.2} );
			//Tweener.addTween(BG, { scaleX:1, x:0, time:.4} );
			Tweener.addTween(BG, { width:300, x:0, time:.4} );
			//Tweener.addTween(BG, { scaleY:1, y:0, delay:.3, time:.3} );
			Tweener.addTween(BG, { height:500, y:0, delay:.3, time:.3} );
		}
		
		public function hidePanel():void
		{
			Tweener.addTween(BG, { scaleX:.1, x:120, time:.4} );
			Tweener.addTween(BG, { scaleY:.1, y:200, delay:.3, time:.3} );
			Tweener.addTween(BG, { alpha:0, delay:.4, time:.2} );
		}
		
	}

}